;(function () {
  new Vue({
    el: '#housePreview',
    data: {
      data: {projectInfo: {units: [], wps: [], stops: []}}
    },
    methods: {
      getData () {
        hlhttp.get({
          url: 'sharing_customer/house_res_preview',
          data: {house_share_id: hlUrlUtil.GetQueryString('id')},
          success: (res) => {
            this.data = res
            this.$refs.houseInfo.innerHTML = res.contentDetail
          }
        })
      },
      back () {
        hlUrlUtil.goTo('houseSharing', {ddtab:true})
        window.location.reload()
      }
    },
    created () {},
    mounted () {
      this.getData()
    }
  })
} ())
